#include <bits/stdc++.h>
using namespace std;
int car[200001];
int main() {
  int n;
  cin >> n;

  int p = 0;
  for (int i = 1; i <= n; i++) {
    while (car[p] == -1)
      p = (p + 1) % n;
    p = (p + 1) % n;
    while (car[p] == -1)
      p = (p + 1) % n;
    car[p] = -1;
    cout << p + 1 << endl;
  }

  return 0;
}